home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: Translt.h.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emith.dll: 2.33
- */
-
- /*
- *
- * Classes defined in this interface
- *
- */
-
-
- #ifndef SOM_ODTranslation_h
- #define SOM_ODTranslation_h
-
-
- #include <som.h>
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * Define the class name as an object type
- */
- #ifndef ODTranslation
- #define ODTranslation SOMObject
- #endif
- #include <ODObject.h>
-
- /*
- * Start of user-defined types:
- */
- #ifndef SOMClass
- #define SOMClass SOMObject
- #endif /* SOMClass */
- #ifndef SOMObject
- #define SOMObject SOMObject
- #endif /* SOMObject */
- #ifndef ODFrame
- #define ODFrame SOMObject
- #endif /* ODFrame */
- #ifndef ODFacet
- #define ODFacet SOMObject
- #endif /* ODFacet */
- #ifndef ODObject
- #define ODObject SOMObject
- #endif /* ODObject */
- #ifndef ODExtension
- #define ODExtension SOMObject
- #endif /* ODExtension */
- #ifndef ODTranslation
- #define ODTranslation SOMObject
- #endif /* ODTranslation */
- #ifndef ODTypeList
- #define ODTypeList SOMObject
- #endif /* ODTypeList */
- #ifndef ODStorageUnitView
- #define ODStorageUnitView SOMObject
- #endif /* ODStorageUnitView */
- #ifndef ODSession
- #define ODSession SOMObject
- #endif /* ODSession */
-
- /*
- * End of user-defined types.
- */
-
- #define ODTranslation_MajorVersion 1
- #define ODTranslation_MinorVersion 0
-
- /*
- * External name shortening if required
- */
- #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
- #define ODTranslationClassData d
- #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
- /*--------------Migration------------*/
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define ODTranslation_classObj somNewClassReference(ODTranslation)
- #define _ODTranslation ODTranslation_classObj
- #define ODTranslationCClassData ODTranslationClassData
- #define ODTranslationNewClass(major,minor) somNewVersionedClassReference(ODTranslation,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define ODTranslationMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /*
- * Declare the class data structure
- */
- SOMEXTERN struct ODTranslationClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMAny *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken CanTranslate;
- somMToken GetTranslationOf;
- somMToken TranslateView;
- somMToken Translate;
- somMToken GetISOTypeFromPlatformType;
- somMToken GetPlatformTypeFromISOType;
- somMToken reserved1;
- somMToken reserved2;
- somMToken reserved3;
- } SOMDLINK ODTranslationClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(ODTranslation_Class_Source) && !defined(SOM_Module_translt_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list ODTranslationClassData
- #endif
- #endif
-
-
- /*
- * New macro for ODTranslation
- */
- #define ODTranslationNew() somNewObject(ODTranslation)
-
- /*
- * Override method: somUninit
- */
- #define ODTranslation_somUninit(somSelf) \
- SOMObject_somUninit(somSelf)
-
- /*
- * Override method: Purge
- */
- #define ODTranslation_Purge(somSelf,ev,size) \
- ODObject_Purge(somSelf,ev,size)
-
- /*
- * New Method: CanTranslate
- */
- typedef ODTranslateResult (SOMLINK *somTD_ODTranslation_CanTranslate)(ODTranslation *somSelf, Environment *ev,
- ODValueType fromType);
- #define somMD_ODTranslation_CanTranslate "::ODTranslation::CanTranslate"
- #define ODTranslation_CanTranslate(somSelf,ev,fromType) \
- (SOM_Resolve(somSelf, ODTranslation, CanTranslate) \
- (somSelf,ev,fromType))
- #ifndef SOMGD_CanTranslate
- #if (defined(_CanTranslate) || defined(__CanTranslate))
- #undef _CanTranslate
- #undef __CanTranslate
- #define SOMGD_CanTranslate 1
- #else
- #define _CanTranslate ODTranslation_CanTranslate
- #endif /* _CanTranslate */
- #endif /* SOMGD_CanTranslate */
-
- /*
- * New Method: GetTranslationOf
- */
- typedef ODTypeList* (SOMLINK *somTD_ODTranslation_GetTranslationOf)(ODTranslation *somSelf, Environment *ev,
- ODValueType fromType);
- #define somMD_ODTranslation_GetTranslationOf "::ODTranslation::GetTranslationOf"
- #define ODTranslation_GetTranslationOf(somSelf,ev,fromType) \
- (SOM_Resolve(somSelf, ODTranslation, GetTranslationOf) \
- (somSelf,ev,fromType))
- #ifndef SOMGD_GetTranslationOf
- #if (defined(_GetTranslationOf) || defined(__GetTranslationOf))
- #undef _GetTranslationOf
- #undef __GetTranslationOf
- #define SOMGD_GetTranslationOf 1
- #else
- #define _GetTranslationOf ODTranslation_GetTranslationOf
- #endif /* _GetTranslationOf */
- #endif /* SOMGD_GetTranslationOf */
-
- /*
- * New Method: TranslateView
- */
- typedef ODTranslateResult (SOMLINK *somTD_ODTranslation_TranslateView)(ODTranslation *somSelf, Environment *ev,
- ODStorageUnitView* fromView,
- ODStorageUnitView* toView);
- #define somMD_ODTranslation_TranslateView "::ODTranslation::TranslateView"
- #define ODTranslation_TranslateView(somSelf,ev,fromView,toView) \
- (SOM_Resolve(somSelf, ODTranslation, TranslateView) \
- (somSelf,ev,fromView,toView))
- #ifndef SOMGD_TranslateView
- #if (defined(_TranslateView) || defined(__TranslateView))
- #undef _TranslateView
- #undef __TranslateView
- #define SOMGD_TranslateView 1
- #else
- #define _TranslateView ODTranslation_TranslateView
- #endif /* _TranslateView */
- #endif /* SOMGD_TranslateView */
-
- /*
- * New Method: Translate
- */
- typedef ODTranslateResult (SOMLINK *somTD_ODTranslation_Translate)(ODTranslation *somSelf, Environment *ev,
- ODValueType fromType,
- ODByteArray* fromData,
- ODValueType toType,
- ODByteArray* toData);
- #define somMD_ODTranslation_Translate "::ODTranslation::Translate"
- #define ODTranslation_Translate(somSelf,ev,fromType,fromData,toType,toData) \
- (SOM_Resolve(somSelf, ODTranslation, Translate) \
- (somSelf,ev,fromType,fromData,toType,toData))
- #ifndef SOMGD_Translate
- #if (defined(_Translate) || defined(__Translate))
- #undef _Translate
- #undef __Translate
- #define SOMGD_Translate 1
- #else
- #define _Translate ODTranslation_Translate
- #endif /* _Translate */
- #endif /* SOMGD_Translate */
-
- /*
- * New Method: GetISOTypeFromPlatformType
- */
- typedef ODValueType (SOMLINK *somTD_ODTranslation_GetISOTypeFromPlatformType)(ODTranslation *somSelf, Environment *ev,
- ODPlatformType platformType,
- ODPlatformTypeSpace typeSpace);
- #define somMD_ODTranslation_GetISOTypeFromPlatformType "::ODTranslation::GetISOTypeFromPlatformType"
- #define ODTranslation_GetISOTypeFromPlatformType(somSelf,ev,platformType,typeSpace) \
- (SOM_Resolve(somSelf, ODTranslation, GetISOTypeFromPlatformType) \
- (somSelf,ev,platformType,typeSpace))
- #ifndef SOMGD_GetISOTypeFromPlatformType
- #if (defined(_GetISOTypeFromPlatformType) || defined(__GetISOTypeFromPlatformType))
- #undef _GetISOTypeFromPlatformType
- #undef __GetISOTypeFromPlatformType
- #define SOMGD_GetISOTypeFromPlatformType 1
- #else
- #define _GetISOTypeFromPlatformType ODTranslation_GetISOTypeFromPlatformType
- #endif /* _GetISOTypeFromPlatformType */
- #endif /* SOMGD_GetISOTypeFromPlatformType */
-
- /*
- * New Method: GetPlatformTypeFromISOType
- */
- typedef ODPlatformType (SOMLINK *somTD_ODTranslation_GetPlatformTypeFromISOType)(ODTranslation *somSelf, Environment *ev,
- ODValueType type);
- #define somMD_ODTranslation_GetPlatformTypeFromISOType "::ODTranslation::GetPlatformTypeFromISOType"
- #define ODTranslation_GetPlatformTypeFromISOType(somSelf,ev,type) \
- (SOM_Resolve(somSelf, ODTranslation, GetPlatformTypeFromISOType) \
- (somSelf,ev,type))
- #ifndef SOMGD_GetPlatformTypeFromISOType
- #if (defined(_GetPlatformTypeFromISOType) || defined(__GetPlatformTypeFromISOType))
- #undef _GetPlatformTypeFromISOType
- #undef __GetPlatformTypeFromISOType
- #define SOMGD_GetPlatformTypeFromISOType 1
- #else
- #define _GetPlatformTypeFromISOType ODTranslation_GetPlatformTypeFromISOType
- #endif /* _GetPlatformTypeFromISOType */
- #endif /* SOMGD_GetPlatformTypeFromISOType */
- #ifndef SOM_DONT_USE_INHERITED_MACROS
- #define ODTranslation_InitObject ODObject_InitObject
- #define ODTranslation_HasExtension ODObject_HasExtension
- #define ODTranslation_AcquireExtension ODObject_AcquireExtension
- #define ODTranslation_ReleaseExtension ODObject_ReleaseExtension
- #define ODTranslation_IsEqualTo ODObject_IsEqualTo
- #define ODTranslation_SubClassResponsibility ODObject_SubClassResponsibility
- #define ODTranslation_somInit SOMObject_somInit
- #define ODTranslation_somInit SOMObject_somInit
- #define ODTranslation_somDuplicateReference SOMObject_somDuplicateReference
- #define ODTranslation_somCompareReference SOMObject_somCompareReference
- #define ODTranslation_somRelease SOMObject_somRelease
- #define ODTranslation_somFree SOMObject_somFree
- #define ODTranslation_somCanDelete SOMObject_somCanDelete
- #define ODTranslation_somGetClass SOMObject_somGetClass
- #define ODTranslation_somGetClassName SOMObject_somGetClassName
- #define ODTranslation_somGetSize SOMObject_somGetSize
- #define ODTranslation_somIsA SOMObject_somIsA
- #define ODTranslation_somRespondsTo SOMObject_somRespondsTo
- #define ODTranslation_somIsInstanceOf SOMObject_somIsInstanceOf
- #define ODTranslation_somDispatch SOMObject_somDispatch
- #define ODTranslation_somClassDispatch SOMObject_somClassDispatch
- #define ODTranslation_somCastObj SOMObject_somCastObj
- #define ODTranslation_somResetObj SOMObject_somResetObj
- #define ODTranslation_somPrintSelf SOMObject_somPrintSelf
- #define ODTranslation_somDumpSelf SOMObject_somDumpSelf
- #define ODTranslation_somDumpSelfInt SOMObject_somDumpSelfInt
- #endif /* SOM_DONT_USE_INHERITED_MACROS */
-
- #endif /* SOM_ODTranslation_h */
-